{
  "remediations": [

  ],
  "scan": {
    "analyzer": {
      "id": "gitlab-dast",
      "name": "GitLab DAST",
      "vendor": {
        "name": "GitLab"
      },
      "version": "1.2.3"
    },
    "end_time": "2022-08-10T22:37:00",
    "messages": [

    ],
    "scanned_resources": [
      {
        "method": "GET",
        "type": "url",
        "url": "http://api-server/"
      },
      {
        "method": "GET",
        "type": "url",
        "url": "http://api-server/open-api-v2.json"
      },
      {
        "method": "GET",
        "type": "url",
        "url": "http://api-server/v1"
      },
      {
        "method": "DELETE",
        "type": "url",
        "url": "http://api-server/v1/tree/10"
      },
      {
        "method": "GET",
        "type": "url",
        "url": "http://api-server/v1/tree/10"
      },
      {
        "method": "GET",
        "type": "url",
        "url": "http://api-server/v1/trees"
      },
      {
        "method": "POST",
        "type": "url",
        "url": "http://api-server/v1/trees"
      }
    ],
    "scanner": {
      "id": "zaproxy",
      "name": "OWASP Zed Attack Proxy (ZAP)",
      "url": "https://www.zaproxy.org",
      "vendor": {
        "name": "GitLab"
      },
      "version": "D-2022-01-04"
    },
    "start_time": "2022-08-10T22:37:00",
    "status": "success",
    "type": "dast"
  },
  "version": "15.0.6",
  "vulnerabilities": [
    {
      "id": "0ef2e062-58ff-4cdd-81b8-93089d8cc799",
      "category": "dast",
      "confidence": "High",
      "cve": "10038-aggregated",
      "description": "Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.",
      "details": {
        "urls": {
          "items": [
            {
              "href": "http://api-server/v1/tree/10",
              "type": "url"
            }
          ],
          "name": "URLs",
          "type": "list"
        }
      },
      "evidence": {
        "request": {
          "headers": [

          ],
          "method": "DELETE",
          "url": "http://api-server/v1/tree/10"
        },
        "response": {
          "headers": [

          ],
          "reason_phrase": "Not Allowed",
          "status_code": 405
        },
        "summary": ""
      },
      "identifiers": [
        {
          "name": "Content Security Policy (CSP) Header Not Set",
          "type": "ZAProxy_PluginId",
          "url": "https://github.com/zaproxy/zaproxy/blob/w2019-01-14/docs/scanners.md",
          "value": "10038"
        },
        {
          "name": "CWE-693",
          "type": "CWE",
          "url": "https://cwe.mitre.org/data/definitions/693.html",
          "value": "693"
        }
      ],
      "links": [
        {
          "url": "https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy"
        },
        {
          "url": "https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html"
        },
        {
          "url": "http://www.w3.org/TR/CSP/"
        },
        {
          "url": "http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.html"
        },
        {
          "url": "http://www.html5rocks.com/en/tutorials/security/content-security-policy/"
        },
        {
          "url": "http://caniuse.com/#feat=contentsecuritypolicy"
        },
        {
          "url": "http://content-security-policy.com/"
        }
      ],
      "location": {
        "hostname": "http://api-server",
        "method": "",
        "param": "",
        "path": ""
      },
      "message": "Content Security Policy (CSP) Header Not Set",
      "scanner": {
        "id": "zaproxy",
        "name": "ZAProxy"
      },
      "severity": "Medium",
      "solution": "Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header, to achieve optimal browser support: \"Content-Security-Policy\" for Chrome 25+, Firefox 23+ and Safari 7+, \"X-Content-Security-Policy\" for Firefox 4.0+ and Internet Explorer 10+, and \"X-WebKit-CSP\" for Chrome 14+ and Safari 6+."
    },
    {
      "id": "c163a008-8b59-45f3-a1eb-14b30e6acc90",
      "category": "dast",
      "confidence": "High",
      "cve": "10036-aggregated",
      "description": "The web/application server is leaking version information via the \"Server\" HTTP response header. Access to such information may facilitate attackers identifying other vulnerabilities your web/application server is subject to.",
      "details": {
        "urls": {
          "items": [
            {
              "href": "http://api-server/v1/tree/10",
              "type": "url"
            },
            {
              "href": "http://api-server/",
              "type": "url"
            },
            {
              "href": "http://api-server/open-api-v2.json",
              "type": "url"
            },
            {
              "href": "http://api-server/v1",
              "type": "url"
            },
            {
              "href": "http://api-server/v1/tree/10",
              "type": "url"
            },
            {
              "href": "http://api-server/v1/trees",
              "type": "url"
            },
            {
              "href": "http://api-server/v1/trees",
              "type": "url"
            }
          ],
          "name": "URLs",
          "type": "list"
        }
      },
      "evidence": {
        "request": {
          "headers": [

          ],
          "method": "DELETE",
          "url": "http://api-server/v1/tree/10"
        },
        "response": {
          "headers": [

          ],
          "reason_phrase": "Not Allowed",
          "status_code": 405
        },
        "summary": "nginx/1.22.0"
      },
      "identifiers": [
        {
          "name": "Server Leaks Version Information via \"Server\" HTTP Response Header Field",
          "type": "ZAProxy_PluginId",
          "url": "https://github.com/zaproxy/zaproxy/blob/w2019-01-14/docs/scanners.md",
          "value": "10036"
        },
        {
          "name": "CWE-200",
          "type": "CWE",
          "url": "https://cwe.mitre.org/data/definitions/200.html",
          "value": "200"
        }
      ],
      "links": [
        {
          "url": "http://httpd.apache.org/docs/current/mod/core.html#servertokens"
        },
        {
          "url": "http://msdn.microsoft.com/en-us/library/ff648552.aspx#ht_urlscan_007"
        },
        {
          "url": "http://blogs.msdn.com/b/varunm/archive/2013/04/23/remove-unwanted-http-response-headers.aspx"
        },
        {
          "url": "http://www.troyhunt.com/2012/02/shhh-dont-let-your-response-headers.html"
        }
      ],
      "location": {
        "hostname": "http://api-server",
        "method": "",
        "param": "",
        "path": ""
      },
      "message": "Server Leaks Version Information via \"Server\" HTTP Response Header Field",
      "scanner": {
        "id": "zaproxy",
        "name": "ZAProxy"
      },
      "severity": "Low",
      "solution": "Ensure that your web server, application server, load balancer, etc. is configured to suppress the \"Server\" header or provide generic details."
    },
    {
      "id": "069d2e84-cea5-4d55-bd99-dc3aa0e1ccb5",
      "category": "dast",
      "confidence": "Medium",
      "cve": "10021-aggregated",
      "description": "The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff'. This allows older versions of Internet Explorer and Chrome to perform MIME-sniffing on the response body, potentially causing the response body to be interpreted and displayed as a content type other than the declared content type. Current (early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than performing MIME-sniffing.",
      "details": {
        "urls": {
          "items": [
            {
              "href": "http://api-server/open-api-v2.json",
              "type": "url"
            },
            {
              "href": "http://api-server/v1/trees",
              "type": "url"
            },
            {
              "href": "http://api-server/v1/trees",
              "type": "url"
            }
          ],
          "name": "URLs",
          "type": "list"
        }
      },
      "evidence": {
        "request": {
          "headers": [

          ],
          "method": "GET",
          "url": "http://api-server/open-api-v2.json"
        },
        "response": {
          "headers": [

          ],
          "reason_phrase": "OK",
          "status_code": 200
        },
        "summary": "This issue still applies to error type pages (401, 403, 500, etc.) as those pages are often still affected by injection issues, in which case there is still concern for browsers sniffing pages away from their actual content type. At \"High\" threshold this scan rule will not alert on client or server error responses."
      },
      "identifiers": [
        {
          "name": "X-Content-Type-Options Header Missing",
          "type": "ZAProxy_PluginId",
          "url": "https://github.com/zaproxy/zaproxy/blob/w2019-01-14/docs/scanners.md",
          "value": "10021"
        },
        {
          "name": "CWE-693",
          "type": "CWE",
          "url": "https://cwe.mitre.org/data/definitions/693.html",
          "value": "693"
        }
      ],
      "links": [
        {
          "url": "http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspx"
        },
        {
          "url": "https://owasp.org/www-community/Security_Headers"
        }
      ],
      "location": {
        "hostname": "http://api-server",
        "method": "",
        "param": "",
        "path": ""
      },
      "message": "X-Content-Type-Options Header Missing",
      "scanner": {
        "id": "zaproxy",
        "name": "ZAProxy"
      },
      "severity": "Low",
      "solution": "Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages. If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing."
    }
  ]
}
